package com.yixun.qfbao.service;

import com.yixun.qfbao.constant.WxConstant;

/**
 * @author zilong.liu
 * @date 2020-12-30
 *
 * desc:
 *     
 */
public interface GetWeAppQrCodeService {
	
	static final String SCENE_SPLIT_CHARACTER = "-";
	
	/**
	 *   根据人员ID，部门ID获取分销小程序注册二维码
	 * @return
	 */
	public String getWeAppQrCodeUrl(String userId, Long id, String... strategy);
	
	/**
	 * 获取分销小程序二维码需要传递的值
	 * @return
	 */
	public String getWeAppScene(String userId, Long id, String companyUuid, String... strategy);
	
	/**
	 * 获取页面路径
	 * @return
	 */
	default public String getPage(String strategy) {
		String page = "";
		switch (strategy) {
		case "partnerDeptQrcodeService":
			page = WxConstant.WeappPage.REGESITER_PAGE;
			break;
		case "partnerInfoService":
			page = WxConstant.WeappPage.PERMISES_STORE;
			break;
		default:
			break;
		}
		return page;
	}
	
	/**
	 * 
	 * @param id
	 * @param qrCode
	 * @return
	 */
	public int saveQrCodeUrl(String userId, Long id, String qrCodeUrl, String... strategy);
}
